<div id="<?php echo $unique_id; ?>" class="tvo-testimonials-display tvo-testimonials-display-single tvo-set5-template tve_red">
	<?php foreach ( $testimonials as $testimonial ) : ?>
		<?php if ( ! empty( $testimonial ) ) : ?>
			<div class="tvo-testimonial-display-item">
				<div class="tvo-item-grid">
					<div class="tvo-testimonial-image-wrapper tvo-hide-on-mobile">
						<div class="tvo-testimonial-image-cover" style="background-image: url(<?php echo $testimonial['picture_url'] ?>)">
							<img src="<?php echo $testimonial['picture_url'] ?>"
								 class="tvo-testimonial-image tvo-dummy-image" alt="profile-pic">
						</div>
					</div>
					<svg width="280px" height="140px" class="tvo-show-on-mobile">
						<defs>
							<clippath id="path">
								<path
										d="M 40 0 L 280 0 L 240 140 L 0 140"></path>
							</clippath>
						</defs>
						<foreignObject clip-path="url(#path)" width="100%" height="100%">
							<div class="tvo-testimonial-image-cover" style="background-image: url(<?php echo $testimonial['picture_url'] ?>)">
								<img src="<?php echo $testimonial['picture_url'] ?>"
									 class="tvo-testimonial-image tvo-dummy-image">
							</div>
						</foreignObject>
					</svg>
					<div class="tvo-testimonial-content-wrapper">
						<div class="tvo-apply-background">
							<div class="tvo-testimonial-content">
								<div class="tvo-testimonial-quote">
									<?php if ( ! empty( $config['show_title'] ) ) : ?>
										<h4>
											<?php echo $testimonial['title'] ?>
										</h4>
									<?php endif; ?>
								</div>
								<?php echo $testimonial['content'] ?>
							</div>
						</div>
						<div class="tvo-testimonial-info">
						<span class="tvo-testimonial-name">
							<?php echo $testimonial['name'] ?>
						</span>
							<?php if ( ! empty( $config['show_role'] ) ) : ?>
								<span class="tvo-testimonial-role">
								<?php $role_wrap_before = empty( $config['show_site'] ) || empty( $testimonial['website_url'] ) ? '' : '<a href="' . $testimonial['website_url'] . '">';
								$role_wrap_after        = empty( $config['show_site'] ) || empty( $testimonial['website_url'] ) ? '' : '</a>';
								echo $role_wrap_before . $testimonial['role'] . $role_wrap_after; ?>
							</span>
							<?php endif; ?>
						</div>
					</div>
				</div>
			</div>
		<?php endif; ?>
	<?php endforeach ?>
</div>

